end

The end command is used to complete a foreach loop or a while loop. Keyword end is also used to tell read that we are finished writing data to stdin. This command should always be found on a line by itself (comments are allowed though).

foreach, while, read, stop